{%include file="m.index.header.tpl.php"%}
<!--头部 end--> 
<!--主体部分-->

<div class="container" style="margin-top:70px;">
  <div class="row row_margin">
   <form name="myform" method="post" action=""  enctype="multipart/form-data">
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">文章标题：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" name="inform_title"> 
        </div>
      </div>
	  <div class="form-group">
        <label for="" class="col-sm-2  control-label">文档号：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" name="inform_num" placeholder="可不填写"> 
        </div>
      </div>
	  <div class="form-group">
        <label for="" class="col-sm-2  control-label">上级部门：</label>
        <div class="col-sm-10 ">
          <select class="form-control" name="up_id">
			{%foreach from=$up_lists key=key item=value%}
				<option value="{%$value.up_id%}">{%$value.up_name%}</option>
			{%/foreach%}
		  </select> 
        </div>
      </div>
	  <div class="form-group">
        <label for="" class="col-sm-2  control-label">下达时间：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" name="start_time" id="datepicker"> 
        </div>
      </div>
	  <div class="form-group">
        <label for="" class="col-sm-2  control-label">要求完成时间：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" name="end_time" id="date" placeholder="可不填写"> 
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">备注内容：</label>
        <div class="col-sm-10 ">
          <textarea id="category_content" name="inform_content" rows="22" cols="40" style="width: 100%"></textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">附件：</label>
        <div class="col-sm-10 ">
          <input type="file" name="inform_file" >
        </div>
      </div>

  </div>
  <!--row  end-->
  
  <div class="row row_margin" style="margin-bottom:25px;" >
    <button type="submit" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
  </div>
</div>
</form>
<!--container  end--> 
<!--主体部分  end--> 
{%include file="m.index.footer.tpl.php"%}
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历--> 

<!--日历--> 
<script>
 $(function() {
    $( "#datepicker" ).datepicker({

      showOtherMonths: true,
      selectOtherMonths: true,
	  changeMonth: true,
      changeYear: true,   
    });
	 $( "#date" ).datepicker({

      showOtherMonths: true,
      selectOtherMonths: true,
	  changeMonth: true,
      changeYear: true,   
    });
 })
</script>

<!--编辑器--> 
<script type="text/javascript" src="mstatic/xhe/xheditor-1.2.2.min.js"></script> 
<script type="text/javascript" src="mstatic/xhe/xheditor_lang/zh-cn.js"></script> 
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
</body>
</html>
